from django.db import models

# Create your models here.
from utils.BaseModel import BaseModel

class NavModel(BaseModel):
    navname=models.CharField(max_length=20,verbose_name="导航名称")
    position=models.IntegerField(verbose_name="导航位置",default=0)
    class Meta:
        db_table="fgnav"

    def __str__(self):
        return self.navname

class BannerModel(BaseModel):
    title=models.CharField(max_length=20,verbose_name="轮播图")
    img=models.CharField(verbose_name="轮播图片",max_length=200)
    url=models.CharField(verbose_name="轮播连接",max_length=200)
    class Meta:
        db_table='fgbanner'

    def __str__(self):
        return self.title

